home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10436 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fflush and Visual C++
  5. Date: 17 Mar 1996 15:26:31 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4ii027$n7c@solutions.solon.com>
  8. References: <4idhv5$dnv@news.mhv.net> <314b173b.71056173@nntp.ix.netcom.com> <4ifuuf$fha@solutions.solon.com> <314c3a5f.145588955@nntp.ix.netcom.com>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <314c3a5f.145588955@nntp.ix.netcom.com>,
  12. Mike Rubenstein <miker3@ix.netcom.com> wrote:
  13. >What's incorrect?  Are you claiming that Visual C does not implement
  14. >fflush() correctly?
  15.  
  16. No.  I'm claiming that it's incorrect to say that fflush(stdin) does not
  17. flush input buffers.  It's just also incorrect to say that it does.
  18.  
  19. >And claiming that someone is wrong for saying that a function doesn't
  20. >do something when the language definition does not define it as doing
  21. >it is rather pedantic.  Sure, it is true (as I point out) that
  22. >fflush(stdin) can do anything, but I'd not suggest using it when you
  23. >want to format your hard disk -- there are quite a few implementations
  24. >that will not do that. :-)
  25.  
  26. Yes, it's quite pedantic.  But it's a significant distinction; an
  27. implementation is allowed to do anything, including what you expect,
  28. when you do something wrong.
  29.  
  30. -s
  31. -- 
  32. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  33. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  34. FUCK the communications decency act.  Goddamned government.  [literally.]
  35. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  36.